<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>社团信息管理系统</title>
     <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/assets/css/bootstrap.min.css" rel="stylesheet">
    <script src="__PUBLIC__/assets/js/jQuery.min.js"></script>
     <script src="__PUBLIC__/assets/js/bootstrap.min.js"></script>
      <script src="__PUBLIC__/assets/js/jquery.min.js"></script>
       <script src="__PUBLIC__/assets/js/bootstrap.min.js"></script>
       <script src="__PUBLIC__/assets/js/ie-emulation-modes-warning.js"></script>

    <!-- Custom styles for this template -->
    <link href="__PUBLIC__/assets/css/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="__PUBLIC__/assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
       <script>
 function func(vid){
  document.getElementById("videoid").value=vid;
   document.getElementById("login").modal();
  }
 </script>
 <!-- 从show页登录成功后取得vid 并跳转到登录模态框--> 

<!-- 弹窗显示视频的资源 css和jQ-->
<script>
jQuery(document).ready(function($) {
  $('.theme-login').click(function(){
    $('.theme-popover-mask').fadeIn(100);
    $('.theme-popover').slideDown(200);
  })
  $('.theme-poptit .close').click(function(){
var myVideo=$('#myVideo')[0];
      myVideo.pause();
    $('.theme-popover-mask').fadeOut(100);
    $('.theme-popover').slideUp(200);
        
  })

})
</script> 
</head>
<style >
  
    #left{
      margin: 0;
padding: 7px;
line-height: 1.5em;
        font-family: "Times New Roman", Times, serif;
font-size: 20px;
        color: #FFFFFF;
background: #000000 url(images/templatemo_body.jpg) top center no-repeat;
}
#TM {background:rgba(255, 255, 255, 0.6) none repeat scroll 0 0 !important;
/*实现FF背景透明，文字不透明*/filter:Alpha(opacity=50); background:#00DB00;
/*实现IE背景透明*/ padding-top:30px;}
body{
    background-image:url(__ROOT__/uploads/photo/19.jpg);
    background-attachment:fixed;
}
 
</style>
<body>

<div class="container-fluid" >


  <!-- Collect the nav links, forms, and other content for toggling     -->
    <div class="navbar navbar-fixed-top navbar-default" id="left" >
  
      <ul class="nav navbar-nav" >
      <li><img src="__ROOT__/uploads/photo/20.jpg" style="width:60px;height:60px"></li>
      <li role="presentation" ><a href="#"><font color="white" size="6"><b>首页</b></font></a></li>
      <li role="presentation" ><a href="#" data-toggle="modal" data-target="#changePassword"><font color="white">修改密码</font></a></li>
      <li role="presentation" ><a href="#" data-toggle="modal" data-target="#changeInfor"><font color="white">修改个人信息</font></a></li>
      <li role="presentation" ><a href=""><font color="white">参加的社团信息</font></a></li>
      <li role="presentation" ><a href=""><font color="white">修改社团信息</font></a></li>
      <li role="presentation" ><a href=""><font color="white">实践活动列表</font></a></li>
      <li role="presentation" ><a href=""><font color="white">创建活动</font></a></li>
      <li role="presentation" ><a href=""><font color="white">添加成员</font></a></li>




        </ul>

        <form   action="Search.php" class="navbar-form navbar-left" role="search" >
        <div class="form-group" align="center">
          <input type="text" class="form-control"  name="videoname" placeholder="Search">
        
        <button type="submit" class="btn btn-default" ><b>搜索</b></button></div>
      </form>
      
      </div></div>



      <div class="modal fade" id="changePassword" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel"><font face="行楷" size="4">修改个人密码</font></h4>
      </div>
      <div class="modal-body">
<form  name="fm" method="post" action="   " onsubmit="return check()" class="form-horizontal">


  <div class="form-group">
    <label for="exampleInputPassword1" class="col-md-4 control-label"><font face="行楷" size="4">原密码</font></label>
    <div class="col-md-4">
  <input type="password" name="old" class="form-control" id="exampleInputPassword1" placeholder="原密码" required>
  </div>
   <div class="col-md-4">
  
  </div>
  </div>


<div class="form-group">
    <label for="exampleInputPassword1" class="col-md-4 control-label"><font face="行楷" size="4">新密码</font></label>
    <div class="col-md-4">
  <input type="password" name="new1" class="form-control" id="exampleInputPassword1" placeholder="新密码" required>
  </div>
   <div class="col-md-4">
  
  </div>
  </div>


  <div class="form-group">
    <label for="exampleInputPassword1" class="col-md-4 control-label"><font face="行楷" size="4">确认新密码</font></label>
    <div class="col-md-4">
  <input type="password" name="new2" class="form-control" id="exampleInputPassword1" placeholder="确认新密码" required>
  </div>
   <div class="col-md-4">
  
  </div>
  </div>



<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <input type="submit" class="btn btn-success" value="修改">
    <input type="reset" class="btn btn-warning" value="重置">
    </div>
  </div>
  


  </form>
      </div>
      <div class="modal-footer">
<button type="button" class="btn btn-danger" onclick="location.replace('index.php')" data-dismiss="modal">关闭</button>   
      </div>
    </div>
  </div>
</div>  

<!-- /修改密码模态框结束 -->
<!-- /修改个人信息模态框开始 -->
 <div class="modal fade" id="changeInfor" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>


        <h4 class="modal-title" id="myModalLabel">请修改您的注册信息</h4>
      </div>
      <div class="modal-body">

<form method="post"  class="form-horizontal" action="doChangeInfo.php"  enctype="multipart/form-data">
  <input type="hidden" name="uid" value=<?php echo $uid;?>>  

<div class="form-group">
    <label for="username" class="col-md-2 control-label"><font face="行楷" size="4">用户名</font></label>
    <div class="col-md-10">
   <input type="text" class="form-control" id="username" readonly="readonly" name="uname" value=<?php echo $username;?> >
   </div>
</div>

<div class="form-group">
    <label  class="col-md-2 control-label"><font face="行楷" size="4">性别</font></label>
<div class="col-md-10">
  <label class="radio-inline">
 <input type="radio"  name="gender" value="男" <?php if($sex=='男')echo "checked"; ?>>男</label>
<label class="radio-inline">
 <input type="radio"  name="gender" value="女" <?php if($sex=='女')echo "checked"; ?>>女</label>
 </div>
</div>

<div class="form-group">
    <label  class="col-md-2 control-label"><font face="行楷" size="4">生日</font></label>
<div class="col-md-10">
<input type="date" name="birthdate" class="form-control"  value=<?php echo $birth; ?>>
 </div>
</div>

<div class="form-group">
    <label  class="col-md-2 control-label"><font face="行楷" size="4">爱好</font></label>
<div class="col-md-10">
 <label class="checkbox-inline">
   <input type="checkbox" name="hobby[]" value="旅游"<?php if(strstr($hobby,"旅游"))echo "checked"; ?> >旅游
</label>
<label class="checkbox-inline">
   <input type="checkbox" name="hobby[]" value="登山" <?php if(strstr($hobby,"登山"))echo "checked"; ?>>登山
</label>
<label class="checkbox-inline">
  <input type="checkbox" name="hobby[]" value="健身" <?php if(strstr($hobby,"健身"))echo "checked"; ?> >健身
</label>
<label class="checkbox-inline">
  <input type="checkbox" name="hobby[]" value="上网"<?php if(strstr($hobby,"上网"))echo "checked"; ?> >上网
</label>
<label class="checkbox-inline">
  <input type="checkbox" name="hobby[]" value="游泳" <?php if(strstr($hobby,"游泳"))echo "checked"; ?>>游泳
</label>
 </div>
</div>

<div class="form-group">
    <label  class="col-md-2 control-label"><font face="行楷" size="4">学历</font></label>
<div class="col-md-10">    
     <select name="degree">
  <option value="请选择" <?php if($degree=='请选择')echo "selected"; ?>>---请选择---</option>
  <option value="高中" <?php if($degree=='高中')echo "selected"; ?>>高中</option>
  <option value="大学"<?php if($degree=='大学')echo "selected"; ?>>大学</option>
  <option value="研究生" <?php if($degree=='研究生')echo "selected"; ?>>研究生</option>
  <option value="博士" <?php if($degree=='博士')echo "selected"; ?>>博士</option>
 </select>
</div>
</div>

<div class="form-group">
    <label  class="col-md-2 control-label"><font face="行楷" size="4">自我介绍</font></label>
<div class="col-md-10">    
    <textarea name="intro" class="form-control" cols="40" rows="5"><?php echo $intro;?></textarea>
</div>
</div>

<div class="form-group">
    <label  class="col-md-2 control-label"><font face="行楷" size="4">头像</font></label>
<div class="col-md-10">    
     <input type="file" name="pic">
原头像：<img src="<?php echo $pic;?>" width="80px" height="80px" class="img-circle">
</div>
</div>

  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
    <input type="submit"  class="btn btn-success" value="更新">
    </div>
  </div>

</form>
    
  
   </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" onclick="location.replace('index.php')" data-dismiss="modal">关闭</button>
        
      </div>
    </div>
  </div>
</div>  
<!-- /修改个人信息模态框结束 -->
